import 'package:event_bus/event_bus.dart';

class EventBusUtil {
  static final EventBus _eventBus = EventBus();

  static EventBus get eventBus => _eventBus;

  /// 注册信息，进行监听
  static Stream<T> on<T>() {
    return _eventBus.on();
  }

  /// 发送信息
  static void fire(event) {
    eventBus.fire(event);
  }
}
